package cn.tedu.aopdemo;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AspcetDemo {

    @Before("bean(demoServiceImpl)")
    public void test(){
        System.out.println("在方法之前");
    }
}
